/****************************************************
// 功能：常量类
// | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
// | Copyright (c) 2021-2025 聊来 All rights reserved.
// | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">聊来</a> )
// | @Author: 贯彻己道的云 <18970881148@qq.com>
// | DateTime: 2024/12/29 11:38:40
*****************************************************/

public class Constants
{

    // Tcp
    public const string TCP_ADDRESS = "127.0.0.1";
    //public const string TCP_ADDRESS = "公网IP";
    public const int TCP_PORT = 8001;
    
    // Kcp
    public const string KCP_ADDRESS = "127.0.0.1";
    //public const string KCP_ADDRESS = "公网IP";
    public const int KCP_PORT = 8002;
    
    // WebSocket
    public const string WEBSOCKET_ADDRESS = "127.0.0.1";
    //public const string WEBSOCKET_ADDRESS = "公网IP";
    public const int WEBSOCKET_PORT = 8003;
    
    // 场景名称/ID
    public const string SCREEN_LOGIN = "SceneLogin";

    // 开场视频
    public const string OPEN_VIDEO_PLAYER = "openVideoPlayer";
    
    public const string LOBBY_VIDEO_PLAYER = "lobbyVideoPlayer";

    // 可用内存大小
    public const int UNITY_GET_LONG_AVAILABLEMEMORY = 1;
    // 总共内存大小
    public const int UNITY_GET_LONG_TOTALMEMORY = 2;
    // 应用所使用内存大小
    public const int UNITY_GET_LONG_USEDMEMORY = 3;
    
    // QQ登录回调
    public const int PLATFORM_MSG_QQ_LOGIN_CALLBACK = 1;
    // 微信登录回调
    public const int PLATFORM_MSG_WX_LOGIN_CALLBACK = 2;
    
    // QQ登录
    public const int PLATFORM_MSG_QQ_LOGIN = 1;
    // QQ注销
    public const int PLATFORM_MSG_QQ_LOGOUT = 2;
    // WX登录
    public const int PLATFORM_MSG_WX_LOGIN = 3;
    // WX注销
    public const int PLATFORM_MSG_WX_LOGOUT = 4;

    // QQ票据是否有效
    public const int UNITY_GET_STRING_QQ_AUTORVAILD = 1;

    // QQ刷新票据
    public const int UNITY_GET_STRING_QQ_REFRESHSESSION = 2;
    
    // 微信票据是否有效
    public const int UNITY_GET_STRING_WX_AUTORVAILD = 3;

    // 微信刷新票据
    public const int UNITY_GET_STRING_WX_REFRESHSESSION = 4;

    // 音效名称
    public const string BG_GO_TIME = "goTime";
    
    // 登录按钮音效
    public const string UI_LOGIN_BTN = "loginBtnClick";
    
    // 常规UI点击音效
    public const string UI_CLICK_BTN = "uiClickBtn";
    
    // 常规数字
    public const int NUM_ZERO = 0;
    public const int NUM_ONE = 1;
    public const int NUM_FIVE = 5;
    public const int NUM_THIRTY = 30;

    // 玩家组队类型 1v1 5v5
    public const string TEAM_ONE = "1v1";
    public const string TEAM_FIVE = "5v5";


    // XML Config
    public const string UNIT_CONFIG = "Xml/unit";
    public const string MAP_CONFIG = "Xml/map";

    // 屏幕标准宽高
    public const int SCREEN_STANDARD_HEIGHT = 1080;

    public const string LOBBY = "lobby";

    public const string MAP_ROOT = "MapRoot";

    public const float CLIENT_LOGIC_FRAME_DELTA_SEND = 0.066f;

    // 摇杆点标准距离
    public const int SCREEN_DP_DIS = 135;
    public const int SKILL_OP_DIS = 125;
    public const int SKILL_CANCEL_DIS = 500;
    
    // 每66毫秒15帧
    public const int SERVER_LOGIC_FRAME_ID = 66;
    
    // 通用移动攻击buffID
    public const int MOVE_ATTACK_BUFF_ID = 90000;
}
